<?php

namespace App\Model;

use App\Http\Controllers\v1\QiniuController;
use Illuminate\Database\Eloquent\Model;

class FeedbackModel extends Model
{
    protected $table = 'feedback';
    public $timestamps = false;
    protected $guarded = [];

    public function suggestContent($uuid, $content,$image)
    {
        $res = FeedbackModel::create([
            'uid' => $uuid,
            'created_at' => date('Y-m-d H:i:s'),
            'content' => $content,
            'head_img' => $image

        ]);

        if($res){
            return ['code'=> true,'data' => 1];
        }else{
            return ['code'=> false,'data' => 0];
        }
    }



}
